package ioc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
//如果想启动组件扫描的注入方式(如果想让Hero类上的@Component生效)
//还要在配置类中声明扫描的包
@ComponentScan("ioc")
public class Config {

}
